home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c
- Subject: Re: Microsoft C to Borland 4.5????
- Date: Thu, 15 Feb 1996 17:16:24 +0200
- Organization: Carelcomp Forest
- Message-ID: <31234E48.B86@cmt.lpr.mail.carel.fi>
- References: <DMsrGB.2G1@iquest.net>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Sean Michael Slavin wrote:
- >
- > Please, please someone help. I've been given the task of trying to get a Microsoft C program to
- > run under Borland 4.5 since we are beginning to migrate towards NT at work. Has anyone done
- > this before? When I compile the program in Borland it quits because of too many errors. Most are
- > linker errors which leads me to believe there is some kind of library problem. Am I
- > thinking correctly?
- > All of our programs have been written in Microsoft C under OS/2 and we would like to get away
- > from that if at all possible. Any pointers, comments, suggestions would be very welcome.
-
- Microsoft compilers (from your saying MSC with OS/2, I think you refer to MSC version 5.x or 6.x) add
- some `hidden┤ function calls in object modules, such as those checking for stack space in the
- beginning of a function and those doing 32-bit arithmetic. Borland inlines these into the object code
- it produces, and thus doesn't have the functions in their libraries.
-
- One thing you can try is to export the modules containing functions that the linker snaps at you about
- from the MS libraries and then linking the resulted object files with your program. The object module
- formats produced by MSC for OS/2 and normal DOS should be quite identical; however, the libraries are
- different, so be sure to use DOS libraries when doing that. BC4.5 doesn't support OS/2, but they have
- another version available for OS/2 (or at least, they used to have) versioned as BC2 for OS/2. If
- you're looking for to build a 32-bit Win95 or NT program from modules compiled for OS/2, forget about
- it and recompile all.
-
- HTH,
- AriL
- --
- All my opinions are mine and mine alone.
-